package com.dsbj.mp.icardservice.service.msgcenter;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dsbj.mp.icardservice.entity.msgcenter.McCate;
import com.dsbj.mp.icardservice.mapper.msgcenter.McCateMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * 消息中心》消息类别服务类。
 * @author cjw 2020-02-21
 */
@Service
@Transactional
public class McCateService extends ServiceImpl<McCateMapper, McCate> {
	
	@Resource
	private McCateMapper mcCateMapper;
	
	
	/**
	 * 获取mcCate列表。
	 * @param
	 * @return
	 * @author cjw 2020-02-21
	 */
	public List<McCate> getMcCate(){
		QueryWrapper<McCate> queryWrapper=new QueryWrapper<McCate>()
				.eq("STATUS",1)
				.orderByAsc("SORT");
		List<McCate> list_mcCate=mcCateMapper.selectList(queryWrapper);
		return list_mcCate;
	}
	
	
	
	


}
